|
Graph Common | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.filechooser.FileFilter
pl.psnc.graph.io.GraphFileFilter
public class GraphFileFilter
GraphFileFilter class - file filter which is used with
JFileChooser dialog.
| Field Summary | |
|---|---|
protected java.lang.String |
description
Description of accepted files. |
protected java.lang.String |
extension
Extension of accepted files. |
| Constructor Summary | |
|---|---|
GraphFileFilter(java.lang.String extension,
java.lang.String description)
Constructs a new filter for the specified extension and description. |
|
| Method Summary | |
|---|---|
boolean |
accept(java.io.File file)
Returns true if file is a directory or ends with
extension. |
java.lang.String |
getDescription()
Get value of the property: description |
java.lang.String |
getExtension()
Get value of the property: extension |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.String extension
protected java.lang.String description
| Constructor Detail |
|---|
public GraphFileFilter(java.lang.String extension,
java.lang.String description)
extension - the extension to accept files with.description - the description of the file format.| Method Detail |
|---|
public boolean accept(java.io.File file)
file is a directory or ends with
extension.
accept in class javax.swing.filechooser.FileFilterfile - The file to be checked.
public java.lang.String getExtension()
public java.lang.String getDescription()
getDescription in class javax.swing.filechooser.FileFilter
|
Graph Common | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||